package com.amit.jsf;

import java.util.ArrayList;
import java.util.List;

public class StudentList {
	
	private List<StudentBean> studentList;
	
	private boolean flag=true;

	
	
	
	public List<StudentBean> getStudentList() {
		return studentList;
	}




	public void setStudentList(List<StudentBean> studentList) {
		this.studentList = studentList;
	}




	public boolean isFlag() {
		return flag;
	}




	public void setFlag(boolean flag) {
		this.flag = flag;
	}




	public String getStudents()
	{
		studentList= new ArrayList<StudentBean>();
		StudentBean student=new StudentBean("s1", "B17", "s1@jlc.com", "111", "Mathikere", 10000);
		studentList.add(student);
		
		 student=new StudentBean("s2", "B18", "s2@jlc.com", "222", "Marathali",8000);
		studentList.add(student);
		
		student=new StudentBean("s3", "B19", "s3@jlc.com", "333", "Madiwala",12000);
		studentList.add(student);
		
		student=new StudentBean("s4", "B21", "s4@jlc.com", "444", "Mathikere",10000);
		studentList.add(student);
		
		student=new StudentBean("s5", "B20", "s5@jlc.com", "555", "HSR Layout",5000);
		studentList.add(student);
		
		
		flag=false;
		
		return "students";
		
	}

}
